<?php
include_once("gateway/tdgProyecto.php");
$tdg = new tdgProyecto();
$dts = $tdg->getListaPlantillas();
?>


<table border="1" cellpadding="0" cellspacing="0" bordercolor="#111111" width="50%">
    <tr>
        <td align='center'width="34%"height="21">
            <p style="margin-center: 10"><b><font size="2" face="Verdana" color="#000000">
			Nombre</font></b>
        </td>
        <td align='center'width="33%" height="21">
            <p style="margin-center: 10"><b><font face="Verdana" size="2" color="#000000">
			Descargar</font></b>
        </td>
    </tr>
    <?php
    if($dts) {
        while($row = mysql_fetch_array($dts)) {

    ?>
    <tr>
        <td width="34%" height="21">
            <p style="margin-center: 10; margin-right: 10">
                <font face="Verdana" size="1">
                            <?php echo $row["Nombre"]; ?>
                </font>
        </td>
        <td align='center'width="33%" height="21">
            <p style="margin-center: 10"><font face="Verdana" size="1">
                    <a href="descargar.php?target=plantilla&fileId=<?php echo $row["idPlantilla"]; ?>">
                        <img src='image/download-icon.png' width='30' height='30' border='0' alt='Descargar'>

                    </a></font>
        </td>
    </tr>
        <?php
        }
    }
    echo "</table>";
    ?>